Ext.define('jwawa.erp.home.ChangePasswordShell', {
    extend: 'jwawa.erp.framework.ShellContainer',
    handlerClass:'jwawa.erp.home.ChangePasswordHandler',

    height: 166,
    width: 330,
    resizable: false,
    defaultFocus: 'old_pwd',
    layout: {
        type: 'fit'
    },
    title: '修改密码',
    items: [
        {
            xtype: 'form',
            itemId: 'changPwdForm',
            url: '/home/change-pwd',
            plugins:[{ptype: 'jwawaSubmitPlugin'}],
            border: false,
            layout: {
                type: 'column'
            },
            bodyPadding: 10,
            items: [
                {
                    xtype: 'textfield',
                    margin: '3',
                    itemId: 'old_pwd',
                    name:'old_pwd',
                    fieldLabel: '原密码',
                    inputType: 'password',
                    selectOnFocus: true,
                    allowBlank: false,
                    labelAlign: 'right',
                    labelWidth: 70,
                    columnWidth: 1
                },
                {
                    xtype: 'textfield',
                    margin: '3',
                    name:'new_pwd',
                    fieldLabel: '新密码',
                    inputType: 'password',
                    selectOnFocus: true,
                    allowBlank: false,
                    labelAlign: 'right',
                    labelWidth: 70,
                    columnWidth: 1
                },
                {
                    xtype: 'textfield',
                    margin: '3',
                    name:'confirm_new_pwd',
                    fieldLabel: '确认新密码',
                    inputType: 'password',
                    selectOnFocus: true,
                    allowBlank: false,
                    labelAlign: 'right',
                    labelWidth: 70,
                    columnWidth: 1
                }
            ],
            buttons: [
                {
                    text: '确定',
                    action:'confirm'
                },
                {
                    text: '关闭',
                    action:'close'
                }
            ]
        }
    ]
});
